package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 物联网设备表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_iot_device")
@ApiModel(value = "XhIotDevice对象", description = "物联网设备表")
public class XhIotDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联产品ID")
    private Integer productId;

    @ApiModelProperty("设备编码，和物联网平台关联")
    private String deviceNo;

    @ApiModelProperty("设备自定义名称")
    private String name;

    @ApiModelProperty("设备状态 0.未激活，1.在线、2.离线")
    private Integer status;

    @ApiModelProperty("设备状态更新时间")
    private Date lastStatusTime;

    @ApiModelProperty("上线时间")
    private Date onlineTime;

    @ApiModelProperty("下线时间")
    private Date offlineTime;

    @ApiModelProperty("是否启用1.启用 0 禁用")
    private Integer isEnabled;

    @ApiModelProperty("是否删除 1.已删除 0 正常")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建人名称")
    private String createName;

    @ApiModelProperty("创建人id")
    private Integer createUser;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
